package com.ease.util {
   import mx.managers.CursorManager;

   public class CursorManagerExt {
      public static var currentEdgeCursorID:int;
      public static var currentHandleCursorID:int;

      public function CursorManagerExt() {
      }

      public static function setEdgeCursor(source:Class, priority:int = 2, xoffSet:int = 0, yoffSet:int = 0):void {
         currentEdgeCursorID = changeCursor(source, priority, xoffSet, yoffSet);
      }

      public static function setHandleCursor(source:Class, priority:int = 2, xoffSet:int = 0, yoffSet:int = 0):void {
         currentHandleCursorID = changeCursor(source, priority, xoffSet, yoffSet);
      }

      public static function changeCursor(source:Class, priority:int = 2, xoffSet:int = 0, yoffSet:int = 0):Number {
         return CursorManager.setCursor(source, priority, xoffSet, yoffSet);
      }

      public static function removeCursor(cursorID:int):void {
         CursorManager.removeCursor(cursorID);
      }

   }
}